package com.yigang.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yigang.dao.PayMentDao;
import com.yigang.entity.PayMent;
import com.yigang.service.PayMentService;
@Service
@Transactional
public class PayMentServiceImpl implements PayMentService{
@Autowired
	PayMentDao payMentDao;
	@Override
	public List<Map<String, Object>> findList() {
		// TODO Auto-generated method stub
		return payMentDao.findList();
	}
	@Override
	public PayMent getAll() {
		// TODO Auto-generated method stub
		return payMentDao.getAll();
	}
	@Override
	public int addCart(PayMent payMent) {
		// TODO Auto-generated method stub
		return payMentDao.insert(payMent);
	}

}
